/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Util;

/**
 *
 * @author antonio
 */

import java.util.*;

public class DbpediaResourceFactory {

     private Hashtable resourceHandler = new Hashtable();
     private String italy[] = {"Sicily", "Calabria"};
     
     private String sicily[] = {"Messina", "Catania"} ;
     private String messina[] = {"Messina"};
     private String catania[] = {"Catania"};
     
     private String calabria[] = {"Catanzaro", "Cosenza"} ;
     private String catanzaro[] = {"Catanzaro"};
     private String cosenza[] = {"Cosenza"};
     
    public DbpediaResourceFactory()
    {
        addResourceForType("Italy", italy);
        
        addResourceForType("Sicily", sicily);
        addResourceForType("Messina", messina);
        addResourceForType("Catania", catania);
        
        addResourceForType("Calabria", calabria);
        addResourceForType("Catanzaro", catanzaro);
        addResourceForType("Cosenza", cosenza);
    }
    
    public void addResourceForType(String type, String[] resource)
    {
        resourceHandler.put(type, resource);
    }
    
    public String[] getResourceForType(String resource)
    {
        return (String[])resourceHandler.get(resource);
    }
    
}
